﻿using Refit;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Nodes;
using System.Threading.Tasks;

namespace IM.Easy.ScheduledServices.IRefitApi
{
    public interface IRemoteService
    {
        /// <summary>
        /// get请求
        /// </summary>
        /// <returns></returns>
        [Get("")]
        Task<JsonObject> GetDataAsync(Dictionary<string, string> parm);


        /// <summary>
        /// post请求
        /// </summary>
        /// <returns></returns>
        [Post("")]
        Task<JsonObject> PostDataAsync(Dictionary<string, string> parm);


        /// <summary>
        /// delete请求
        /// </summary>
        /// <returns></returns>
        [Delete("")]
        Task<JsonObject> DeleteDataAsync(Dictionary<string, string> parm);

        /// <summary>
        /// put请求
        /// </summary>
        /// <returns></returns>
        [Put("")]
        Task<JsonObject> UpdateDataAsync(Dictionary<string, string> parm);
    }
}
